package com.ywqf_api.enums;

/**
 * Created by Administrator on 2018/3/28 0028.
 */
public enum RegEnum {

    //注册相关问题
    PHONE_EMPTY(1,"手机号不能为空"),
    PASSWORD_EMPTY(2,"密码不能为空"),
    USER_EXIST(3,"该手机号已注册"),
    REG_FAIL(4,"注册失败"),
    REG_SUCCESS(1000,"恭喜您！注册成功");

    private int code;
    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    RegEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
